-
-
Notifications
You must be signed in to change notification settings - Fork 33k
GH-139193: Fix dump_stack when PYTHON_LLTRACE=4 #139384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
GH-139193: Fix dump_stack when PYTHON_LLTRACE=4 #139384
Conversation
PR ready to review, please take a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
@Fidget-Spinner Thanks for review! I tried to fix |
This reverts commit 58b4564.
I revert it because it was not right. |
|
Any suggestions for a better name are welcome, as it is obviously not clear. |
@markshannon What do you think about adding new function |
That sounds good. Leave |
There are two problems:
dump_stack
/dump_item
should ignore items that pushed on the stack withPyStackRef_Wrap
PyStackRef_IsError
should test onlyPy_TAG_BITS
of.bits
not whole.bits
valueAlso, PyStackRef_IsValid should be fixed accordingly.
PYTHON_LLTRACE=4
segfaults #139193